<?php
/**
 * Created by JetBrains PhpStorm.
 * User: thinhhung
 * Date: 5/24/12
 * Time: 3:12 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<?php
    echo $this->Form->create('KhachHang', array('action' => 'edit'));
?>
<fieldset>
    <legend><label>Cập nhật thông tin khách hàng</label></legend>


      <?php echo $this->Form->input('id', array('type' => 'hidden')); ?>

    <dl>
        <dt><label>Đối tượng khách hàng</label></dt>
        <dd><?php echo $this->Form->input('DOITUONGKH_ID', array('type' => 'select', 'label' => false, 'options' => $doituongs)); ?></dd>
    </dl>
    <dl>
        <dt><label>Tên khách hàng</label></dt>
        <dd><?php echo $this->Form->input('TENKH', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Địa chỉ</label></dt>
        <dd><?php echo $this->Form->input('DIACHIKH', array('label' => false));  ?></dd>
    </dl>

</fieldset>
<div class="button">
<?php
    echo $this->Form->submit('Lưu', array('div' => false));
    echo $this->Html->Link('Hủy', array('controller' => 'khach_hangs', 'action' => 'index'), array('class' => 'cancel'));
    echo $this->Form->end();
?>
</div>